//
//  STCacheDataManager.h
//  赛拓
//
//  Created by 王磊 on 8/15/16.
//  Copyright © 2016 立金所. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface STCacheDataManager : NSObject

+ (instancetype)getInstance;

#pragma mark --- 首页缓存
- (void)saveHomeData:(id)data;

- (id)queryHomeData;

#pragma mark --- 用户帐户信息
- (void)saveAccountData:(id)data forKey:(NSString *)key;

- (id)queryAccountDataForKey:(NSString *)key;

#pragma mark --- 用户详细资料
- (void)saveSellerData:(id)data forKey:(NSString *)key;

- (id)querySellerDataForKey:(NSString *)key;

#pragma mark --- 用户使用协议
- (void)saveProtocolData:(id)data;

- (id)queryProtocolData;

#pragma mark --- 商家列表
- (void)saveSellerListData:(id)data forKey:(NSString *)key;

- (id)querySellerListDataForKey:(NSString *)key;

#pragma mark --- 默认地区缓存
- (void)saveDefaultAreasListData:(id)data;

- (id)queryDefaultAreasListData;

#pragma mark --- 商品
- (void)saveCommodityData:(id)data forKey:(NSString *)key;

- (id)queryCommodityDataForKey:(NSString *)key;
@end
